package com.hengpeng.itfinbase.persist;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.hengpeng.itfinbase.idAssign.AbstractAssign18IdEntity;

@Entity
public class ShortcutMenuNode extends AbstractAssign18IdEntity
{
	private static final long serialVersionUID = 679312668687317429L;

	/**
	 * 菜单ID
	 */
	@ManyToOne(optional = false, fetch = FetchType.EAGER)
	@JoinColumn(name = "menuId")
	private ShortcutMenu menu;

	/**
	 * 名称
	 */
	private String name;

	private String remark;

	private Long sortLevel;

	/**
	 * 连接地址
	 */
	private String url;

	public ShortcutMenu getMenu()
	{
		return menu;
	}

	public String getName()
	{
		return name;
	}

	public String getRemark()
	{
		return remark;
	}

	public Long getSortLevel()
	{
		return sortLevel;
	}

	public String getUrl()
	{
		return url;
	}

	public void setMenu(ShortcutMenu menu)
	{
		this.menu = menu;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	public void setSortLevel(Long sortLevel)
	{
		this.sortLevel = sortLevel;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}
}
